package com.schoolhelper.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

import lombok.*;

/**
 * (TMessage)表实体类
 *
 * @author makejava
 * @since 2021-04-23 21:03:28
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class TMessage extends Model<TMessage> {

    //消息id
    @TableId(type = IdType.AUTO)
    private Long messageId;

    //发送者id
    private Integer senderId;

    //接受者id
    private Integer receiverId;

    //消息
    private String messageText;

    //发送时间
    private Date sendDatetime;
}
